home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Demos / AppMaker 2.0b3 / Demo AppMaker 1.5 / Demo AppMaker™ / Demo AppMaker™.rsrc / TmCT_314_zSubWindow < prev    next >
Encoding:
Text File  |  1992-04-08  |  1.6 KB  |  66 lines

  1. /* %filename% -- subwindow methods */
  2. /* Created %date% %time% by AppMaker */
  3.  
  4. /*    We recommend that you not modify this module and instead modify        */
  5. /*    its subclass, %WindName%.  The 'z' prefix on this module marks%        %*/
  6. /*    a module which is likely to be regenerated by AppMaker after you    */
  7. /*    make changes to the user interface.  The modules without the 'z'    */
  8. /*    prefix will not be regenerated by AppMaker unless you delete them.    */
  9. /*    Using a separate subclass to override the AppMaker-generated code    */
  10. /*    lets you regenerate code without losing your hand-coded changes.    */ 
  11.  
  12. #include <Commands.h>
  13. #include <CBartender.h>
  14. #include <CWindow.h>
  15. #include <CSizeBox.h>
  16. %for each item gen include%
  17. #include "z%WindName%.h"
  18.  
  19. extern CDesktop        *gDesktop;
  20. extern CBartender    *gBartender;
  21.  
  22. #define %WindName%ID    %rsrcID% 
  23.  
  24. /*----------*/
  25. void    Z%WindName%::IZ%WindName%    (CDirectorOwner        *aSupervisor)
  26. {
  27.     CView            *enclosure;
  28.     CBureaucrat        *supervisor;
  29.     CSizeBox        *aSizeBox;
  30.  
  31.     inherited::IDirector (aSupervisor);
  32.  
  33.     itsWindow = new CWindow;
  34.     %if procID = 3200%
  35.         itsWindow->IWindow (%WindName%ID, TRUE, gDesktop, this);    // floating
  36.     %else%
  37.         itsWindow->IWindow (%WindName%ID, FALSE, gDesktop, this);
  38.     %endif%
  39.  
  40.     enclosure = itsWindow;
  41.     supervisor = this;
  42.  
  43.     %for each item gen create%
  44.  
  45.     %if has growBox%
  46.         aSizeBox = new CSizeBox;
  47.         aSizeBox->ISizeBox (enclosure, supervisor);
  48.     %endif%
  49.     
  50. } /* IZ%WindName% */
  51.  
  52. %for each item gen zAuxiliaryMethod%
  53. /*----------*/
  54. void    Z%WindName%::DoCommand        (long        theCommand)
  55. {
  56.     switch (theCommand) {
  57.  
  58.         default:
  59.                 inherited::DoCommand (theCommand);
  60.             break;
  61.     } /* switch */
  62.  
  63. } /* DoCommand */
  64.  
  65. /* %filename% */
  66.